<?php
/**
 * invite.php 邀请
 *
 * @author camfee <camfee@foxmail.com>
 * @date   17-9-5 上午9:23
 *
 */
require_once('../../../common.inc.php');

use Mobile\AppConnect;

class share extends lib\core\Action
{
    public function doDefault()
    {
        $uid = intval($_GET['uid']);
        if (empty($uid)) {
            $uid = (int)AppConnect::init();
        }
        $smarty = $this->app->page();
        $share = [
            'title' => '邀请好友',
            'desc' => '邀请你来金果低价购赚好礼',
            'img' => 'http://demo.jinguonet.com/public/images/logo.png',
            'url' => 'http://m.jinguonet.com/app/help/invite.php?uid=' . $uid,
        ];

        $smarty->value('share', $share);
        $smarty->output();
    }
}

$app->run();